I'm writing a query to look at orders in a table called Order (I did not name it that). Unfortunately, this is also a reserved key term in SQL. In the query in visual studio I put the table name in brackets [Order]. The query is simple
SELECT DISTINCT O.ProjectNo, O.ReportType
FROM [Order] AS O
The query runs correctly while in VS, but once I upload the report to SSRS server, I get an error
- Query execution failed for dataset 'EDROrders'. (rsErrorExecutingCommand)
- Invalid object name 'Order'
Any ideas? I'm on SQL 2